home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet internetowy / Czytniki RSS / RSS Bandit 1.3.0.42 / RssBandit Installer.msi / _172FF5180BC61D3C6D240F14338A23AA / _E3DEF1DF3B5D4A26BAFCFE87064143C9 < prev    next >
Text File  |  2004-12-11  |  10KB  |  343 lines

  1.         <xsl:stylesheet version='1.0' 
  2.                 xmlns:xsl='http://www.w3.org/1999/XSL/Transform'
  3.                 xmlns:content = 'http://purl.org/rss/1.0/modules/content/'
  4.                 xmlns:xhtml='http://www.w3.org/1999/xhtml'
  5.                 xmlns:slash='http://purl.org/rss/1.0/modules/slash/'
  6.                 xmlns:dc='http://purl.org/dc/elements/1.1/'
  7.                 exclude-result-prefixes='content slash dc'>
  8.  
  9.           <xsl:output method='xml' indent='yes' /> 
  10.  
  11.  
  12.           <!-- channel group newspaper -->
  13.           <xsl:template match="newspaper[@type='group']">
  14.             <html>
  15.               <head>
  16.             <title><xsl:value-of select='title'/></title>
  17.             <!-- <base href="{//item/link}" /> -->
  18.             <style><![CDATA[
  19.             body        
  20.             {
  21.             background:#000DCC;
  22.             color:#AAAAFF;
  23.             font: 10pt terminal;
  24.             margin:2pt; 
  25.             padding:0pt; 
  26.             }
  27.             .title        
  28.             {
  29.             color:yellow;
  30.             }
  31.             .date
  32.             {
  33.             color:#dddddd; 
  34.             }
  35.             .author
  36.             {
  37.             color:#dddddd;
  38.             }
  39.             div.content 
  40.             {
  41.             line-height: 14pt;
  42.             }
  43.             a
  44.             {
  45.             text-decoration: none;
  46.             }
  47.             td.title a:link      
  48.             { 
  49.             color:#FFFFFF;
  50.             }
  51.             td.title a:visited   
  52.             { 
  53.             color:#FFFFFF;
  54.             }
  55.             td.title a:hover         
  56.             { 
  57.             color:#FF0000;
  58.             }
  59.             a:link      
  60.             { 
  61.             color:#FFFFFF;
  62.             }
  63.             a:visited   
  64.             {
  65.             color:#FFFFFF;
  66.             }
  67.             a:hover        
  68.             { 
  69.             color:#FF0000;
  70.             }
  71.             ]]></style>
  72.               </head>
  73.               <body>
  74.             <p align="center" style="margin-top: 10px">**** COMMODORE 64 BASIC V2 ****</p>
  75.             <p align="center">64K RAM SYSTEM <xsl:text disable-output-escaping='yes'>&nbsp;</xsl:text>38911 BASIC BYTES FREE</p>
  76.             <p>READY.</p>
  77.              <xsl:for-each select="//channel">
  78.             <p class="title"><a href="{current()/title}"><xsl:value-of  disable-output-escaping='yes' select='current()/title'/></a></p>
  79.               <xsl:for-each select='current()//item'>
  80.               <p><xsl:value-of select='current()/category'/></p>
  81.               <div class='content'>
  82.                 <xsl:choose>
  83.                   <xsl:when test='current()/author'>
  84.                 AUTHOR: <span class="author"><xsl:value-of select='current()/author'/></span><br />
  85.                   </xsl:when>
  86.                   <xsl:when test='current()/dc:creator'>
  87.                 AUTHOR: <span class="author"><xsl:value-of select='current()/dc:creator'/></span><br />
  88.                   </xsl:when>                
  89.                 </xsl:choose>
  90.                 TITLE: <a href="{current()/link}"><span class="title"><xsl:value-of disable-output-escaping='yes' select='current()/title' /></span></a><br/>
  91.                 DATE: <span class="date"><xsl:value-of select='current()/pubDate' /></span><br/><br/>
  92.                 <xsl:choose>
  93.                   <xsl:when test='current()/xhtml:body'>
  94.                 <xsl:copy-of select='current()/xhtml:body'/> 
  95.                   </xsl:when>
  96.                   <xsl:when test='current()/content:encoded'>
  97.                 <xsl:value-of  disable-output-escaping='yes' select='current()/content:encoded'/>
  98.                   </xsl:when>
  99.                   <xsl:otherwise> 
  100.                 <xsl:value-of disable-output-escaping='yes' select='current()/description'/>
  101.                   </xsl:otherwise>
  102.                   </xsl:choose><br/><br/>
  103.                 </div>
  104.                 <xsl:choose> 
  105.                   <xsl:when test='current()/comments'>
  106.                 <a>
  107.                   <xsl:attribute name="href"><xsl:value-of  disable-output-escaping='yes' select='current()/comments'/></xsl:attribute>
  108.                   COMMENTS:(<xsl:value-of select='current()/slash:comments'/>)
  109.                 </a> 
  110.                   </xsl:when>
  111.                   <xsl:when test='current()/slash:comments'>1: 
  112.                   <a>
  113.                 <xsl:attribute name="href"><xsl:value-of  disable-output-escaping='yes' select='current()/comments'/></xsl:attribute>
  114.                 COMMENTS:(<xsl:value-of select='current()/slash:comments'/>)
  115.                   </a>
  116.                 </xsl:when>
  117.                 </xsl:choose><br/>
  118.                 <p><xsl:text disable-output-escaping='yes'>&nbsp;</xsl:text></p>    
  119.               </xsl:for-each>
  120.              </xsl:for-each>
  121.             </body>
  122.               </html>
  123.             </xsl:template>
  124.  
  125.             <!-- channel newspaper -->
  126.             <xsl:template match="newspaper[@type='channel']">
  127.               <html>
  128.             <head>
  129.               <title><xsl:value-of select='//channel/title'/></title>
  130.               <base href="{//channel/link}" />
  131.               <style><![CDATA[
  132.               body        
  133.               {
  134.               background:#000DCC;
  135.               color:#AAAAFF;
  136.               font: 10pt terminal;
  137.               margin:2pt; 
  138.               padding:0pt; 
  139.               }
  140.               .title        
  141.               {
  142.               color:yellow;
  143.               }
  144.               .date
  145.               {
  146.               color:#dddddd; 
  147.               }
  148.               .author
  149.               {
  150.               color:#dddddd;
  151.               }
  152.               div.content 
  153.               {
  154.               line-height: 14pt;
  155.               }
  156.               a
  157.               {
  158.               text-decoration: none;
  159.               }
  160.               td.title a:link      
  161.               { 
  162.               color:#FFFFFF;
  163.               }
  164.               td.title a:visited   
  165.               { 
  166.               color:#FFFFFF;
  167.               }
  168.               td.title a:hover         
  169.               { 
  170.               color:#FF0000;
  171.               }
  172.               a:link      
  173.               { 
  174.               color:#FFFFFF;
  175.               }
  176.               a:visited   
  177.               {
  178.               color:#FFFFFF;
  179.               }
  180.               a:hover        
  181.               { 
  182.               color:#FF0000;
  183.               }
  184.               ]]></style>
  185.             </head>
  186.             <body>
  187.               <p align="center" style="margin-top: 10px">**** COMMODORE 64 BASIC V2 ****</p>
  188.               <p align="center">64K RAM SYSTEM <xsl:text disable-output-escaping='yes'>&nbsp;</xsl:text>38911 BASIC BYTES FREE</p>
  189.               <p>READY.</p> 
  190.               <p class="title"><a href="{//channel/title}"><xsl:value-of  disable-output-escaping='yes' select='//channel/title'/></a></p>
  191.               <xsl:for-each select='//item'>
  192.               <p><xsl:value-of select='current()/category'/></p>
  193.               <div class='content'>
  194.                 <xsl:choose>
  195.                   <xsl:when test='current()/author'>
  196.                 AUTHOR: <span class="author"><xsl:value-of select='current()/author'/></span><br />
  197.                   </xsl:when>
  198.                   <xsl:when test='current()/dc:creator'>
  199.                 AUTHOR: <span class="author"><xsl:value-of select='current()/dc:creator'/></span><br />
  200.                   </xsl:when>                
  201.                 </xsl:choose>
  202.                 TITLE: <a href="{current()/link}"><span class="title"><xsl:value-of disable-output-escaping='yes' select='current()/title' /></span></a><br/>
  203.                 DATE: <span class="date"><xsl:value-of select='current()/pubDate' /></span><br/><br/>
  204.                 <xsl:choose>
  205.                   <xsl:when test='current()/xhtml:body'>
  206.                 <xsl:copy-of select='current()/xhtml:body'/> 
  207.                   </xsl:when>
  208.                   <xsl:when test='current()/content:encoded'>
  209.                 <xsl:value-of  disable-output-escaping='yes' select='current()/content:encoded'/>
  210.                   </xsl:when>
  211.                   <xsl:otherwise> 
  212.                 <xsl:value-of disable-output-escaping='yes' select='current()/description'/>
  213.                   </xsl:otherwise>
  214.                   </xsl:choose><br/><br/>
  215.                 </div>
  216.                 <xsl:choose> 
  217.                   <xsl:when test='current()/comments'>
  218.                 <a>
  219.                   <xsl:attribute name="href"><xsl:value-of  disable-output-escaping='yes' select='current()/comments'/></xsl:attribute>
  220.                   COMMENTS:(<xsl:value-of select='current()/slash:comments'/>)
  221.                 </a> 
  222.                   </xsl:when>
  223.                   <xsl:when test='current()/slash:comments'>1: 
  224.                   <a>
  225.                 <xsl:attribute name="href"><xsl:value-of  disable-output-escaping='yes' select='current()/comments'/></xsl:attribute>
  226.                 COMMENTS:(<xsl:value-of select='current()/slash:comments'/>)
  227.                   </a>
  228.                 </xsl:when>
  229.                 </xsl:choose><br/>
  230.                 <p><xsl:text disable-output-escaping='yes'>&nbsp;</xsl:text></p>    
  231.               </xsl:for-each>
  232.               </body>
  233.             </html>
  234.               </xsl:template>
  235.  
  236.               <!-- single news item -->
  237.               <xsl:template match="newspaper[@type='newsitem']">
  238.             <html>
  239.               <head>
  240.                 <title><xsl:value-of select='//item/title'/></title>
  241.                 <base href="{//item/link}" />
  242.                 <style><![CDATA[
  243.                 body        
  244.                 {
  245.                 background:#000DCC;
  246.                 color:#AAAAFF;
  247.                 font: 10pt terminal;
  248.                 margin:2pt; 
  249.                 padding:0pt; 
  250.                 }
  251.                 .title        
  252.                 {
  253.                 color:yellow;
  254.                 }
  255.                 .date
  256.                 {
  257.                 color:#dddddd; 
  258.                 }
  259.                 .author
  260.                 {
  261.                 color:#dddddd;
  262.                 }
  263.                 div.content 
  264.                 {
  265.                 line-height: 14pt;
  266.                 }
  267.                 a
  268.                 {
  269.                 text-decoration: none;
  270.                 }
  271.                 td.title a:link      
  272.                 { 
  273.                 color:#FFFFFF;
  274.                 }
  275.                 td.title a:visited   
  276.                 { 
  277.                 color:#FFFFFF;
  278.                 }
  279.                 td.title a:hover         
  280.                 { 
  281.                 color:#FF0000;
  282.                 }
  283.                 a:link      
  284.                 { 
  285.                 color:#FFFFFF;
  286.                 }
  287.                 a:visited   
  288.                 {
  289.                 color:#FFFFFF;
  290.                 }
  291.                 a:hover        
  292.                 { 
  293.                 color:#FF0000;
  294.                 }
  295.                 ]]></style>
  296.               </head>
  297.               <body>
  298.                 <p align="center" style="margin-top: 10px">**** COMMODORE 64 BASIC V2 ****</p>
  299.                 <p align="center">64K RAM SYSTEM <xsl:text disable-output-escaping='yes'>&nbsp;</xsl:text>38911 BASIC BYTES FREE</p>
  300.                 <p>READY.</p>
  301.                 <p><xsl:value-of select='//item/category'/></p>
  302.                 <div class='content'>
  303.                   <xsl:choose>
  304.                 <xsl:when test='//item/author'>
  305.                   AUTHOR: <span class="author"><xsl:value-of select='//item/author'/></span><br />
  306.                 </xsl:when>
  307.                 <xsl:when test='//item/dc:creator'>
  308.                   AUTHOR: <span class="author"><xsl:value-of select='//item/dc:creator'/></span><br />
  309.                 </xsl:when>                
  310.                   </xsl:choose>
  311.                   TITLE: <a href="{//item/link}"><span class="title"><xsl:value-of disable-output-escaping='yes' select='//item/title' /></span></a><br/>
  312.                   DATE: <span class="date"><xsl:value-of select='//item/pubDate' /></span><br/><br/>
  313.                   <xsl:choose>
  314.                 <xsl:when test='//item/xhtml:body'>
  315.                   <xsl:copy-of select='//item/xhtml:body'/> 
  316.                 </xsl:when>
  317.                 <xsl:when test='//item/content:encoded'>
  318.                   <xsl:value-of  disable-output-escaping='yes' select='//item/content:encoded'/>
  319.                 </xsl:when>
  320.                 <xsl:otherwise> 
  321.                   <xsl:value-of disable-output-escaping='yes' select='//item/description'/>
  322.                 </xsl:otherwise>
  323.                 </xsl:choose><br/><br/>
  324.                   </div>
  325.                   <xsl:choose> 
  326.                 <xsl:when test='//item/comments'>
  327.                   <a>
  328.                     <xsl:attribute name="href"><xsl:value-of  disable-output-escaping='yes' select='//item/comments'/></xsl:attribute>
  329.                     COMMENTS:(<xsl:value-of select='//item/slash:comments'/>)
  330.                   </a> 
  331.                 </xsl:when>
  332.                 <xsl:when test='//item/slash:comments'>1: 
  333.                 <a>
  334.                   <xsl:attribute name="href"><xsl:value-of  disable-output-escaping='yes' select='//item/comments'/></xsl:attribute>
  335.                   COMMENTS:(<xsl:value-of select='//item/slash:comments'/>)
  336.                 </a>
  337.                   </xsl:when>
  338.                   </xsl:choose><br/>                
  339.                 </body>
  340.               </html>
  341.             </xsl:template>
  342.  
  343.               </xsl:stylesheet>